-
Notifications
You must be signed in to change notification settings - Fork 893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix crash during the sync page loading in tor(guest) window #1704
Conversation
Sync page should be disabled for now because BraveSyncService isn't instantiated for OTR profile. Instead, sync is disabled page is loaded.
26d2cd2
to
55eb56a
Compare
return false; | ||
else | ||
return true; | ||
return !command_line.HasSwitch(switches::kDisableBraveSync); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good for me.
I could not open brave://settings/ in either tor or guest window (STR 3), because it redirected to the tab in main profile window, looks like this was done in some other PR.
@AlexeyBarabash Redirecting work was done by #1295. However, it only works on private window(non tor or guest. Typing on |
Just re-checked, no, it does not redirects to a normal window. Probably I had confused between windows in previous comment, sorry for that. |
@simonhong so the private window and the guest window are different things? |
@AlexeyBarabash Yes, they are different. Because of this reason, loading |
Thanks @simonhong , I hadn't know this and never opened guest window before. |
@AlexeyBarabash Thanks for checking! Tor and guest window both are based on guest profile. |
Sync page should be disabled for now because BraveSyncService isn't
instantiated for OTR profile.
Instead, sync is disabled page is loaded.
Fix brave/brave-browser#3003
Submitter Checklist:
npm test brave_unit_tests && npm test brave_browser_tests
) ongit rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Please refer STR in brave/brave-browser#3003
Reviewer Checklist: